#define _CRT_SECURE_NO_WARNINGS
#include"Heap.h"

int main()
{
	int a[] = { 32,50,100,70,65,60 };
	HP hp;
	HPInit(&hp);
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		HPPush(&hp, a[i]);
	}
	//printf("%d ", HeapTop(&hp));
	//HeapPop(&hp);
	//printf("%d ", HeapTop(&hp));
	while (!HPEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HPDestroy(&hp);

	return 0;
}